export default function(){
  if(localStorage.getItem("gameLevel")){
    let gameLevel = localStorage.getItem("gameLevel")
    this.changeLevel(gameLevel*1)
  }
  if(localStorage.getItem("custom") && this.checkedBox[0] == 4){
    let custom = localStorage.getItem("custom")
    let arr = custom.split(',')
    this.rows = arr[0]
    this.columns = arr[1]
    this.totalMines = arr[2]
  }
  if(localStorage.getItem("record")){
    let record = localStorage.getItem("record")
    let arr = record.split(',')
    this.$set(this.record,0,arr[0])
    this.$set(this.record,1,arr[1])
    this.$set(this.record,2,arr[2])
  }
  if(localStorage.getItem("recordName")){
    let record = localStorage.getItem("recordName")
    let arr = record.split(',')
    this.$set(this.recordName,0,arr[0])
    this.$set(this.recordName,1,arr[1])
    this.$set(this.recordName,2,arr[2])
  }
  this.resetGame()
}